package com.fire.transaction.api.dto.com.fire.transaction.api;

import com.fire.common.domain.BusinessException;
import com.fire.transaction.api.dto.PayChannelDTO;
import com.fire.transaction.api.dto.PlatformChannelDTO;

import java.util.List;

/**
 * 查询平台的支付服务接口
 * @author fire
 * @date 2021年07月21日17:17
 */
public interface PayChannelService {
    /**
     * 查询平台的服务类型
     * @return
     * @throws BusinessException
     */
    public List<PlatformChannelDTO> queryPlatformChannel() throws BusinessException;

    /**
     * 为某个应用绑定平台服务类型
     * @param appId
     * @param platformChannelCode
     * @throws BusinessException
     */
    void bindPlatformChannelForApp(String appId,String platformChannelCode) throws BusinessException;

    /**
     * 应用绑定服务的状态
     * @param appId
     * @param platformChannelCode
     * @return 为0表示，未绑定；1，表示已绑定
     * @throws BusinessException
     */
    int queryAppBindPlatformChannel(String appId,String platformChannelCode)throws BusinessException;
}
